/*
** my.h for my in /home/goupil_r//afs/Jour_09/ex_02
**
** Made by robin goupil
** Login   <goupil_r@epitech.net>
**
** Started on  Thu Oct 11 09:52:12 2012 robin goupil
** Last update Sun Nov 18 16:18:20 2012 robin goupil
*/

#ifndef MY_H_
# define MY_H_

char    **my_str_to_wordtab(char *str);
char    **my_str_to_wordtab_sep(char *str, char sep);
char	*my_strdup(char *str);
void	my_aff_params(int argc, char **argv);
int	my_char_isalpha(char str);
int	my_char_isnum(char str);
void	my_get_rest_convert_base(long u_nb, long size, char *base, char *out);
void	my_convertnbr_base(long nbr, char *base, char *out);
int	is_it_prime(int nb);
int	my_find_prime_sup(int nb);
int	get_num_from_base(char *base, char c);
int	is_params_valid(char *str, char *base);
int	getnbr_base(char *str, char *base);
int	my_readnbr(char *str);
int	my_getnbr(char *str);
int     my_isneg(int n);
int     my_is_prime(int nb);
int     my_power_rec(int nb, int power);
int     my_putchar(char c);
void    my_get_rest_base(long u_nb, long size, char *base);
int	my_putnbr_base(int nbr, char *base);
void    my_get_rest(long u_nb, long size);
void    my_put_nbr(int nb);
int     my_putstr(char *str);
void    my_rev_params(int argc, char **argv);
void    my_swap_char(char *a, char *b);
char    *my_revstr(char *str);
void    my_get_rest_long_base(long u_nb, long size, char *base);
int	my_putnbr_long_base(long nbr, char *base);
void    aff_addr(long addr);
void    aff_hex_values(char *str, int ligne);
int     my_showmem(char *str, int size);
void    show_special_char(char c);
int     my_showstr(char *str, char *base);
void    my_sort_int_tab(int *tab, int size);
int     my_square_root(int nb);
char    *my_strcapitalize(char *str);
char    *my_strcat(char *dest, char *src);
int     my_strcmp(char *s1, char *s2);
char	*my_strcpy(char *dest, char *src);
int     my_str_isalpha(char *str);
int     my_str_islower(char *str);
int     my_str_isnum(char *str);
int     my_str_isprintable(char *str);
int     my_str_isupper(char *str);
int     my_strlcat(char *dest, char *src, int size);
int     my_strlen(char *str);
char    *my_strlowcase(char *str);
char    *my_strncat(char *dest, char *src, int nb);
int     my_strncmp(char *s1, char *s2, int n);
char	*my_strncpy(char *dest, char *src, int n);
char    *my_strstr(char *str, char *to_find);
char    *my_strupcase(char *str);
int     my_swap(int *a, int *b);
void    my_swap_ptr(void **a, void **b);
void	my_memset(void *ptr, int size, int value);
void	*xmalloc(int size);
void	xfree(void *ptr);
void	*xrealloc(void *ptr, int size, int new_size);
char	*my_itos(long nbr);

#endif /* !MY_H_ */
